﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TravelPage.aspx.vb" Inherits="ObjectServices_ASPNET_VB.TravelPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Read a post</title>
    <style type="text/css">
        .style1
        {
            font-size: large;
        }
        #form1
        {
            margin-right: 400px;
        }
    </style>
</head>
<body>
   <form id="form1" runat="server">
    <div style="width: 899px">
    
        <b><i>The text below is the first blog entry we can find. The buttons will allow you to take the text and create a new comment with the first person we can find in the database. Take a look at the code behind each of the buttons.</i></b><br />
    
        <br />
    
        <asp:Label ID="labelSeries" runat="server" style="font-size: xx-large" 
            Text="Label"></asp:Label>
        <br />
        <br />
        <br />
        <asp:Label ID="labelBlogTitle" runat="server" style="font-size: large" 
            Text="Label"></asp:Label>
        <br />
        <asp:Label ID="labelPerson" runat="server" Text="Label"></asp:Label>
    
    </div>
    <asp:TextBox ID="blogEntry" runat="server" BorderStyle="Solid" Height="268px" 
        Width="647px" TextMode="MultiLine" ReadOnly="True"></asp:TextBox>
    <p><i>The comments are the result of an projected LINQ query.</i><br />Comments: 
        (you may have to add a new comment)</p>
    <asp:GridView ID="gridComments" runat="server" CellPadding="4" 
        ForeColor="#333333" GridLines="None" AutoGenerateSelectButton="True">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <p>
        <i>Select the comments above and use the button to delete the selected comments.</i><br />
        <asp:Button ID="ButtonDeleted" runat="server" Text="Delete Selected" 
            Width="101px" onclick="ButtonDeleted_Click" />           
    </p>
    <p>
        <i>The update button will take the select comment and add a '*' to the end of the text.</i><br />
        <asp:Button ID="ButtonUpdated" runat="server" Text="Update Selected" 
            Width="101px" onclick="ButtonUpdated_Click" style="margin-bottom: 0px" />
    </p>
    <p class="style1">
        Leave a comment?</p>
    <p>
        <span class="style1">Who are you?</span>
        <br />
        <asp:DropDownList ID="dropdownPersons" runat="server" Height="21px" 
            Width="189px">
        </asp:DropDownList>
    </p>
    <asp:TextBox ID="textComment" runat="server" Height="162px" 
        TextMode="MultiLine" Width="306px"></asp:TextBox>
    <asp:Button ID="buttonSubmitComment" runat="server" Height="28px" 
        onclick="buttonSubmitComment_Click" Text="SaveChanges" Width="89px" />
    </form>
</body>
</html>
